<!--Author: @ngel Sullon Macalupu-->
<? require_once '../../Include.php'; 
require_once '../../WEB_INF/SubmitConsulting/LiveScrum/ModConfig/Data/UsuarioData.php';
require_once '../../WEB_INF/SubmitConsulting/LiveScrum/ModConfig/Data/Entity/Usuario.php';
?>
<html>
    <head>
    <link type="text/css" rel="STYLESHEET" href="../../Recurso/Style/App.css">
    <script type="text/javascript" src="../../Recurso/Script/app.util.js" ></script>
    <script type="text/javascript" src="../../Recurso/Script/jquery-1.1.2.js" ></script>
        
<script type='text/javascript' language='JavaScript'><!--
    function cancelar(){ document.fm2.submit(); }
    function enviar(){
    	if( document.fm.clave.value==''){
    		alert('Complete nueva clave');
    		document.fm.clave.select();
    		return false;
    	}
    	if( document.fm.clave2.value==''){
    		alert('Complete confirmaci�n de clave');
    		document.fm.clave2.select();
    		return false;
    	}
    	if( document.fm.clave.value==document.fm.clave2.value){
    		return true;
    	}
    	else{
    		alert('Passwrds distintos');
    		document.fm.clave.select();
    		return false;
    	}
    }

    function sf(){ document.fm.clave.focus(); }
// --></script>
    </head>
<?
$usuarioId = $_SESSION['usuarioId'] ? $_SESSION['usuarioId'] : '0';
//$forward = trim($_POST['forward']) ? trim($_POST['forward']) : '';

$d=new Usuario();
    $tran= new UsuarioData();
    $d=$tran->findByPk($usuarioId);   
?>

<body onload="sf()">
<div class="page">
    <div class="header">
        <div class="title">
            <h1><?= Config::$RAZONSOCIAL ?></h1>
            <h2><?= Config::$PROJECTNAME ?></h2>
        </div>
    </div>
        <div class="main">
        <div class='form'><br>
  <table class='TableForm' align='center'>
    <tr class=TableFormTitle><td colspan='3' >
        Formulario: Actualizacion de clave
        </td></tr>
    <tr class='legendIndication'>
        <td colspan='3'>
        <?= $go ?> Usuario, por favor complete los datos con *.
        <br>Luego precione el bot&oacute;n <b>Continuar</b> para guardar la informaci&oacute;n ingresada.
        </td></tr>

    <!-- img upload -->
        <tr>
            <td rowspan='2' class='img' width='130' align='center'>
                <img src='../../Recurso/Foto/<?= $d->getFoto() ?>' width='120' height='140'>
            </td>
            <td rowspan='2' style='width: 5px;vertical-align : top;' class='fonc'></td>
            <td colspan='1'></td>
        </tr>

    <!-- main -->
    <form action='ForzarClaveSave.php' method='post' name='fm' onsubmit='return enviar()'>
    	<//input type='hidden' name='forward' value='<?= $forward ?>'>
        <input type='hidden' name='usuarioId' value='<?= $usuarioId ?>'>
        <tr><td valign='top'>
                        <table>
			<tr>
                            <td valign='top' colspan="2">
            <table>
                                <tr>
                                    <td>nombres: *</td>
                                    <td><?=$d->getNombres()?></td>
                                </tr>
                                <tr>
                                    <td>usuario: </td>
                                    <td><?=$d->getUsuario()?></td>
                                </tr>
                                <tr>
                                    <td>Nueva clave: </td>
                                    <td><input type='password' class='passwordEntry' name='clave' value=''></td>
                                </tr>
                                <tr>
                                    <td>Confirmar nueva clave: </td>
                                    <td><input type='password' class='passwordEntry' name='clave2' value=''></td>
                                </tr>
            </table>
					</td>
                            </tr>
                        </table>

            </td></tr>

                            <TR class=TableFormFooter>
                                <TD colSpan=3 align="right">&nbsp;
                                        <input type='submit' class='Btn' value='Continuar'>
					

                                </TD></TR>
       
    </form>
    <!-- end form fm (main Body)-->
  </table>
      
        <br></div>


    </div>
</div>
    <? require_once '../../Menu/Rol1/close.php'; ?>
</body>
</html>

<form action='../../White.html' method='post' name='fm2'>
    <input type='hidden' name='usuarioId' value='<?= $usuarioId ?>'>
    <input type='hidden' name='go' value=''>
</form>


